home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 January: Mac OS SDK / Dev.CD Jan 00 SDK1.toast / Development Kits / Mac OS / Multiprocessing 2.0 SDK / Sample Code / SortPictsMP ƒ / CopyBlits ƒ / CopyBlits.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-03  |  1.5 KB  |  86 lines  |  [TEXT/CWIE]

  1. /**\
  2. |**|    CopyBlits.h
  3. \**/
  4.  
  5. #ifndef __COPYBLITS__
  6. #define __COPYBLITS__
  7.  
  8. #include <QuickDraw.h>
  9.  
  10. #if PRAGMA_ONCE
  11. #pragma once
  12. #endif
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #if PRAGMA_IMPORT
  19. #pragma import on
  20. #endif
  21.  
  22. #if PRAGMA_STRUCT_ALIGN
  23.     #pragma options align=mac68k
  24. #elif PRAGMA_STRUCT_PACKPUSH
  25.     #pragma pack(push, 2)
  26. #elif PRAGMA_STRUCT_PACK
  27.     #pragma pack(2)
  28. #endif
  29.  
  30. // Prototypes
  31. void Set_ColorTable(CTabHandle pCTabHandle);
  32.  
  33. void CopyBlits    (    const PixMapHandle srcPixMapHdl,
  34.                     const PixMapHandle dstPixMapHdl,
  35.                     const Rect *srcRect,
  36.                     const Rect *dstRect
  37. );
  38.  
  39. // 194 fps vs. 300 fps CopyBits
  40. void CopyBlits8    (    const PixMapHandle srcPixMapHdl,
  41.                     const PixMapHandle dstPixMapHdl,
  42.                     const Rect *srcRect,
  43.                     const Rect *dstRect
  44. );
  45.  
  46. // 354 fps vs. 300 fps CopyBits
  47. void CopyBlits8_8    (    const PixMapHandle srcPixMapHdl,
  48.                         const PixMapHandle dstPixMapHdl,
  49.                         const Rect *srcRect,
  50.                         const Rect *dstRect
  51. );
  52.  
  53. // 50 fps vs. 42 fps CopyBits
  54. void CopyBlits8_16    (    const PixMapHandle srcPixMapHdl,
  55.                         const PixMapHandle dstPixMapHdl,
  56.                         const Rect *srcRect,
  57.                         const Rect *dstRect
  58. );
  59.  
  60. // 50 fps vs. 39 fps CopyBits
  61. void CopyBlits8_32    (    const PixMapHandle srcPixMapHdl,
  62.                         const PixMapHandle dstPixMapHdl,
  63.                         const Rect *srcRect,
  64.                         const Rect *dstRect
  65. );
  66.  
  67. #if PRAGMA_STRUCT_ALIGN
  68.     #pragma options align=reset
  69. #elif PRAGMA_STRUCT_PACKPUSH
  70.     #pragma pack(pop)
  71. #elif PRAGMA_STRUCT_PACK
  72.     #pragma pack()
  73. #endif
  74.  
  75. #ifdef PRAGMA_IMPORT_OFF
  76. #pragma import off
  77. #elif PRAGMA_IMPORT
  78. #pragma import reset
  79. #endif
  80.  
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84.  
  85. #endif __COPYBLITS__
  86.